package com.lh.enums;

/**
 * @Author LuoHang
 * @Date 2022-08-25 17:30
 **/
public enum AppHttpCodeEnum {
    /**
     * 成功
     */
    SUCCESS(200,"操作成功"),
    /**
     * 登录
     */
    NEED_LOGIN(401,"需要登录后操作");
    /**
     * 状态码
     */
    int code;
    /**
     * 信息
     */
    String msg;

    AppHttpCodeEnum(int code, String errMsg){
        this.code = code;
        this.msg = errMsg;
    }

    public int getCode(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
}
